//
//  YDVerticalDetailFinanceCell.m
//  PeiZiWangBei
//
//  Created by LK-IOS on 2018/1/9.
//  Copyright © 2018年 LK-IOS. All rights reserved.
//

#import "YDVerticalDetailFinanceCell.h"
#import "YDSingleStockFinanceModel.h"


@interface YDVerticalDetailFinanceCell()

@property (nonatomic , assign) CGFloat marginL;//左右间距
@property (nonatomic , assign) CGFloat marginT;//上下间距
@property (nonatomic , assign) CGFloat marginH;//label搞
@property (nonatomic , assign) CGFloat marginW;//label宽度

//分割线
@property (nonatomic , weak) UIView *lineView;

//截止日期
@property (nonatomic , weak) UILabel *jiezhiriqi;
//股票代码
//
@property (nonatomic , weak) UILabel *gupiaodama;
@property (nonatomic , weak) UILabel *gupiaodamal;
//每股净资产
//
@property (nonatomic , weak) UILabel *meigujingzichan;
@property (nonatomic , weak) UILabel *meigujingzichanl;
//每股收益
//
@property (nonatomic , weak) UILabel *meigushouyi;
@property (nonatomic , weak) UILabel *meigushouyil;
//每股现金含量
//
@property (nonatomic , weak) UILabel *meiguxianjinhanliang;
@property (nonatomic , weak) UILabel *meiguxianjinhanliangl;
//每股资本公积金
//
@property (nonatomic , weak) UILabel *meiguzibengongjijin;
@property (nonatomic , weak) UILabel *meiguzibengongjijinl;
//固定资产合计
//
@property (nonatomic , weak) UILabel *gudingzichanheji;
@property (nonatomic , weak) UILabel *gudingzichanhejil;
//流动资产合计
//
@property (nonatomic , weak) UILabel *liudongzichanheji;
@property (nonatomic , weak) UILabel *liudongzichanhejil;
//资产总计
//
@property (nonatomic , weak) UILabel *zichanzongji;
@property (nonatomic , weak) UILabel *zichanzongjil;
//长期负债合计
//
@property (nonatomic , weak) UILabel *changqifuzhaiheji;
@property (nonatomic , weak) UILabel *changqifuzhaihejil;
//主营业务收入
//
@property (nonatomic , weak) UILabel *zhuyingyewushouru;
@property (nonatomic , weak) UILabel *zhuyingyewushourul;
//财务费用
//
@property (nonatomic , weak) UILabel *caiwufeiyong;
@property (nonatomic , weak) UILabel *caiwufeiyongl;
//净利润
//
@property (nonatomic , weak) UILabel *jinglirun;
@property (nonatomic , weak) UILabel *jinglirunl;



@end

@implementation YDVerticalDetailFinanceCell

-(void)setModel:(YDSingleStockFinanceModel *)model
{
    _model = model;
    self.jiezhiriqi.text = [NSString stringWithFormat:@"  截止日期 %@" , model.jiezhiriqiString];
    self.gupiaodamal.text = model.stockCodeString;
    self.meigujingzichanl.text = model.meigujinzichanString;
    self.meigushouyil.text = model.meigushouyiString;
    self.meiguxianjinhanliangl.text = model.meiguxianjinhanliangString;
    self.meiguzibengongjijinl.text = model.meiguzibengongjijinString;
    self.gudingzichanhejil.text = model.gudingzichanhejiString;
    self.liudongzichanhejil.text = model.liudongzichanhejiString;
    self.zichanzongjil.text = model.zichanzongjiString;
    self.changqifuzhaihejil.text = model.changqifuzaihejiString;
    self.zhuyingyewushourul.text = model.zhuyingyewushouruString;
    self.caiwufeiyongl.text = model.caiwufeiyongString;
    self.jinglirunl.text = model.jinlirunString;
}

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *verticalDetailFinanceCell = @"YDVerticalDetailFinanceCell";
    YDVerticalDetailFinanceCell *cell = [tableView dequeueReusableCellWithIdentifier:verticalDetailFinanceCell];
    if (cell == nil) {
        cell = [[YDVerticalDetailFinanceCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:verticalDetailFinanceCell];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return cell;
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.contentView.backgroundColor = [UIColor whiteColor];
        self.backgroundColor = [UIColor whiteColor];
        self.marginL = rate375(20);
        self.marginT = isPhoneX ? rateX812(10) : rate750(10);
        self.marginH = isPhoneX ? rateX812(35) : rate750(35);
        self.marginW = (LKScreenW - self.marginL * 2) * 0.5;
        [self lineView];
        [self jiezhiriqi];
        [self gupiaodama];
        [self gupiaodamal];
        [self meigujingzichan];
        [self meigujingzichanl];
        [self meigushouyi];
        [self meigushouyil];
        [self meiguxianjinhanliang];
        [self meiguxianjinhanliangl];
        [self meiguzibengongjijin];
        [self meiguzibengongjijinl];
        [self gudingzichanheji];
        [self gudingzichanhejil];
        [self liudongzichanheji];
        [self liudongzichanhejil];
        [self zichanzongji];
        [self zichanzongjil];
        [self changqifuzhaiheji];
        [self changqifuzhaihejil];
        [self zhuyingyewushouru];
        [self zhuyingyewushourul];
        [self caiwufeiyong];
        [self caiwufeiyongl];
        [self jinglirun];
        [self jinglirunl];
    }
    return self;
}


-(UIView *)lineView
{
    if (_lineView == nil) {
        UIView *lineView = [[UIView alloc] init];
        [self.contentView addSubview:lineView];
        lineView.backgroundColor = [UIColor colorWithHexString:mainGray];
        [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.bottom.equalTo(self);
            make.height.equalTo(@1);
        }];
        _lineView = lineView;
    }
    return _lineView;
}

//截止日期
-(UILabel *)jiezhiriqi
{
    if (_jiezhiriqi == nil) {
        UILabel *jiezhiriqi = [[UILabel alloc] init];
        [self.contentView addSubview:jiezhiriqi];
        jiezhiriqi.backgroundColor = [UIColor colorWithHexString:mainGray];
        jiezhiriqi.textColor = [UIColor colorWithHexString:dark];
        jiezhiriqi.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        jiezhiriqi.textAlignment = NSTextAlignmentLeft;
        [jiezhiriqi mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.equalTo(self);
            make.height.equalTo(@(self.marginH));
        }];
        _jiezhiriqi = jiezhiriqi;
    }
    return _jiezhiriqi;
}
//股票代码
-(UILabel *)gupiaodama
{
    if (_gupiaodama == nil) {
        UILabel *gupiaodama = [[UILabel alloc] init];
        [self.contentView addSubview:gupiaodama];
        gupiaodama.backgroundColor = [UIColor clearColor];
        gupiaodama.textColor = [UIColor colorWithHexString:blueyGrey];
        gupiaodama.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gupiaodama.textAlignment = NSTextAlignmentLeft;
        [gupiaodama mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.jiezhiriqi.mas_bottom);
        }];
        gupiaodama.text = @"股票代码";
        gupiaodama.adjustsFontSizeToFitWidth = YES;
        _gupiaodama = gupiaodama;
    }
    return _gupiaodama;
}
-(UILabel *)gupiaodamal
{
    if (_gupiaodamal == nil) {
        UILabel *gupiaodamal = [[UILabel alloc] init];
        [self.contentView addSubview:gupiaodamal];
        gupiaodamal.backgroundColor = [UIColor clearColor];
        gupiaodamal.textColor = [UIColor colorWithHexString:dark];
        gupiaodamal.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gupiaodamal.textAlignment = NSTextAlignmentLeft;
        [gupiaodamal mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.jiezhiriqi.mas_bottom);
        }];
        
        gupiaodamal.adjustsFontSizeToFitWidth = YES;
        _gupiaodamal = gupiaodamal;
    }
    return _gupiaodamal;
}
//每股净资产
-(UILabel *)meigujingzichan
{
    if (_meigujingzichan == nil) {
        UILabel *meigujingzichan = [[UILabel alloc] init];
        [self.contentView addSubview:meigujingzichan];
        meigujingzichan.backgroundColor = [UIColor clearColor];
        meigujingzichan.textColor = [UIColor colorWithHexString:blueyGrey];
        meigujingzichan.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meigujingzichan.textAlignment = NSTextAlignmentLeft;
        [meigujingzichan mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.gupiaodama.mas_bottom);
        }];
        meigujingzichan.text = @"每股净资产";
        meigujingzichan.adjustsFontSizeToFitWidth = YES;
        _meigujingzichan = meigujingzichan;
    }
    return _meigujingzichan;
}
-(UILabel *)meigujingzichanl
{
    if (_meigujingzichanl == nil) {
        UILabel *meigujingzichanl = [[UILabel alloc] init];
        [self.contentView addSubview:meigujingzichanl];
        meigujingzichanl.backgroundColor = [UIColor clearColor];
        meigujingzichanl.textColor = [UIColor colorWithHexString:dark];
        meigujingzichanl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meigujingzichanl.textAlignment = NSTextAlignmentLeft;
        [meigujingzichanl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.gupiaodamal.mas_bottom);
        }];
        meigujingzichanl.adjustsFontSizeToFitWidth = YES;
        _meigujingzichanl = meigujingzichanl;
    }
    return _meigujingzichanl;
}
//每股收益
-(UILabel *)meigushouyi
{
    if (_meigushouyi == nil) {
        UILabel *meigushouyi = [[UILabel alloc] init];
        [self.contentView addSubview:meigushouyi];
        meigushouyi.backgroundColor = [UIColor clearColor];
        meigushouyi.textColor = [UIColor colorWithHexString:blueyGrey];
        meigushouyi.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meigushouyi.textAlignment = NSTextAlignmentLeft;
        [meigushouyi mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.meigujingzichan.mas_bottom);
        }];
        meigushouyi.text = @"每股收益";
        meigushouyi.adjustsFontSizeToFitWidth = YES;
        _meigushouyi = meigushouyi;
    }
    return _meigushouyi;
}
-(UILabel *)meigushouyil
{
    if (_meigushouyil == nil) {
        UILabel *meigushouyil = [[UILabel alloc] init];
        [self.contentView addSubview:meigushouyil];
        meigushouyil.backgroundColor = [UIColor clearColor];
        meigushouyil.textColor = [UIColor colorWithHexString:dark];
        meigushouyil.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meigushouyil.textAlignment = NSTextAlignmentLeft;
        [meigushouyil mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.meigujingzichanl.mas_bottom);
        }];
        meigushouyil.adjustsFontSizeToFitWidth = YES;
        _meigushouyil = meigushouyil;
    }
    return _meigushouyil;
}
//每股现金含量
-(UILabel *)meiguxianjinhanliang
{
    if (_meiguxianjinhanliang == nil) {
        UILabel *meiguxianjinhanliang = [[UILabel alloc] init];
        [self.contentView addSubview:meiguxianjinhanliang];
        meiguxianjinhanliang.backgroundColor = [UIColor clearColor];
        meiguxianjinhanliang.textColor = [UIColor colorWithHexString:blueyGrey];
        meiguxianjinhanliang.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meiguxianjinhanliang.textAlignment = NSTextAlignmentLeft;
        [meiguxianjinhanliang mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.meigushouyi.mas_bottom);
        }];
        meiguxianjinhanliang.text = @"每股现金含量";
        meiguxianjinhanliang.adjustsFontSizeToFitWidth = YES;
        _meiguxianjinhanliang = meiguxianjinhanliang;
    }
    return _meiguxianjinhanliang;
}
-(UILabel *)meiguxianjinhanliangl
{
    if (_meiguxianjinhanliangl == nil) {
        UILabel *meiguxianjinhanliangl = [[UILabel alloc] init];
        [self.contentView addSubview:meiguxianjinhanliangl];
        meiguxianjinhanliangl.backgroundColor = [UIColor clearColor];
        meiguxianjinhanliangl.textColor = [UIColor colorWithHexString:dark];
        meiguxianjinhanliangl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meiguxianjinhanliangl.textAlignment = NSTextAlignmentLeft;
        [meiguxianjinhanliangl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.meigushouyil.mas_bottom);
        }];
        meiguxianjinhanliangl.adjustsFontSizeToFitWidth = YES;
        _meiguxianjinhanliangl = meiguxianjinhanliangl;
    }
    return _meiguxianjinhanliangl;
}
//每股资本公积金
-(UILabel *)meiguzibengongjijin
{
    if (_meiguzibengongjijin == nil) {
        UILabel *meiguzibengongjijin = [[UILabel alloc] init];
        [self.contentView addSubview:meiguzibengongjijin];
        meiguzibengongjijin.backgroundColor = [UIColor clearColor];
        meiguzibengongjijin.textColor = [UIColor colorWithHexString:blueyGrey];
        meiguzibengongjijin.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meiguzibengongjijin.textAlignment = NSTextAlignmentLeft;
        [meiguzibengongjijin mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.meiguxianjinhanliang.mas_bottom);
        }];
        meiguzibengongjijin.text = @"每股资本公积金";
        meiguzibengongjijin.adjustsFontSizeToFitWidth = YES;
        _meiguzibengongjijin = meiguzibengongjijin;
    }
    return _meiguzibengongjijin;
}
-(UILabel *)meiguzibengongjijinl
{
    if (_meiguzibengongjijinl == nil) {
        UILabel *meiguzibengongjijinl = [[UILabel alloc] init];
        [self.contentView addSubview:meiguzibengongjijinl];
        meiguzibengongjijinl.backgroundColor = [UIColor clearColor];
        meiguzibengongjijinl.textColor = [UIColor colorWithHexString:dark];
        meiguzibengongjijinl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        meiguzibengongjijinl.textAlignment = NSTextAlignmentLeft;
        [meiguzibengongjijinl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.meiguxianjinhanliangl.mas_bottom);
        }];
        meiguzibengongjijinl.adjustsFontSizeToFitWidth = YES;
        _meiguzibengongjijinl = meiguzibengongjijinl;
    }
    return _meiguzibengongjijinl;
}
//固定资产合计
-(UILabel *)gudingzichanheji
{
    if (_gudingzichanheji == nil) {
        UILabel *gudingzichanheji = [[UILabel alloc] init];
        [self.contentView addSubview:gudingzichanheji];
        gudingzichanheji.backgroundColor = [UIColor clearColor];
        gudingzichanheji.textColor = [UIColor colorWithHexString:blueyGrey];
        gudingzichanheji.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gudingzichanheji.textAlignment = NSTextAlignmentLeft;
        [gudingzichanheji mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.meiguzibengongjijin.mas_bottom);
        }];
        gudingzichanheji.text = @"固定资产合计";
        gudingzichanheji.adjustsFontSizeToFitWidth = YES;
        _gudingzichanheji = gudingzichanheji;
    }
    return _gudingzichanheji;
}
-(UILabel *)gudingzichanhejil
{
    if (_gudingzichanhejil == nil) {
        UILabel *gudingzichanhejil = [[UILabel alloc] init];
        [self.contentView addSubview:gudingzichanhejil];
        gudingzichanhejil.backgroundColor = [UIColor clearColor];
        gudingzichanhejil.textColor = [UIColor colorWithHexString:dark];
        gudingzichanhejil.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        gudingzichanhejil.textAlignment = NSTextAlignmentLeft;
        [gudingzichanhejil mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.meiguzibengongjijinl.mas_bottom);
        }];
        gudingzichanhejil.adjustsFontSizeToFitWidth = YES;
        _gudingzichanhejil = gudingzichanhejil;
    }
    return _gudingzichanhejil;
}
//流动资产合计
-(UILabel *)liudongzichanheji
{
    if (_liudongzichanheji == nil) {
        UILabel *liudongzichanheji = [[UILabel alloc] init];
        [self.contentView addSubview:liudongzichanheji];
        liudongzichanheji.backgroundColor = [UIColor clearColor];
        liudongzichanheji.textColor = [UIColor colorWithHexString:blueyGrey];
        liudongzichanheji.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        liudongzichanheji.textAlignment = NSTextAlignmentLeft;
        [liudongzichanheji mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.gudingzichanheji.mas_bottom);
        }];
        liudongzichanheji.text = @"流动资产合计";
        liudongzichanheji.adjustsFontSizeToFitWidth = YES;
        _liudongzichanheji = liudongzichanheji;
    }
    return _liudongzichanheji;
}
-(UILabel *)liudongzichanhejil
{
    if (_liudongzichanhejil == nil) {
        UILabel *liudongzichanhejil = [[UILabel alloc] init];
        [self.contentView addSubview:liudongzichanhejil];
        liudongzichanhejil.backgroundColor = [UIColor clearColor];
        liudongzichanhejil.textColor = [UIColor colorWithHexString:dark];
        liudongzichanhejil.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        liudongzichanhejil.textAlignment = NSTextAlignmentLeft;
        [liudongzichanhejil mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.gudingzichanhejil.mas_bottom);
        }];
        liudongzichanhejil.adjustsFontSizeToFitWidth = YES;
        _liudongzichanhejil = liudongzichanhejil;
    }
    return _liudongzichanhejil;
}
//资产总计
-(UILabel *)zichanzongji
{
    if (_zichanzongji == nil) {
        UILabel *zichanzongji = [[UILabel alloc] init];
        [self.contentView addSubview:zichanzongji];
        zichanzongji.backgroundColor = [UIColor clearColor];
        zichanzongji.textColor = [UIColor colorWithHexString:blueyGrey];
        zichanzongji.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zichanzongji.textAlignment = NSTextAlignmentLeft;
        [zichanzongji mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.liudongzichanheji.mas_bottom);
        }];
        zichanzongji.text = @"资产总计";
        zichanzongji.adjustsFontSizeToFitWidth = YES;
        _zichanzongji = zichanzongji;
    }
    return _zichanzongji;
}
-(UILabel *)zichanzongjil
{
    if (_zichanzongjil == nil) {
        UILabel *zichanzongjil = [[UILabel alloc] init];
        [self.contentView addSubview:zichanzongjil];
        zichanzongjil.backgroundColor = [UIColor clearColor];
        zichanzongjil.textColor = [UIColor colorWithHexString:dark];
        zichanzongjil.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zichanzongjil.textAlignment = NSTextAlignmentLeft;
        [zichanzongjil mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.liudongzichanhejil.mas_bottom);
        }];
        zichanzongjil.adjustsFontSizeToFitWidth = YES;
        _zichanzongjil = zichanzongjil;
    }
    return _zichanzongjil;
}
//长期负债合计
-(UILabel *)changqifuzhaiheji
{
    if (_changqifuzhaiheji == nil) {
        UILabel *changqifuzhaiheji = [[UILabel alloc] init];
        [self.contentView addSubview:changqifuzhaiheji];
        changqifuzhaiheji.backgroundColor = [UIColor clearColor];
        changqifuzhaiheji.textColor = [UIColor colorWithHexString:blueyGrey];
        changqifuzhaiheji.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        changqifuzhaiheji.textAlignment = NSTextAlignmentLeft;
        [changqifuzhaiheji mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.zichanzongji.mas_bottom);
        }];
        changqifuzhaiheji.text = @"长期负债合计";
        changqifuzhaiheji.adjustsFontSizeToFitWidth = YES;
        _changqifuzhaiheji = changqifuzhaiheji;
    }
    return _changqifuzhaiheji;
}
-(UILabel *)changqifuzhaihejil
{
    if (_changqifuzhaihejil == nil) {
        UILabel *changqifuzhaihejil = [[UILabel alloc] init];
        [self.contentView addSubview:changqifuzhaihejil];
        changqifuzhaihejil.backgroundColor = [UIColor clearColor];
        changqifuzhaihejil.textColor = [UIColor colorWithHexString:dark];
        changqifuzhaihejil.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        changqifuzhaihejil.textAlignment = NSTextAlignmentLeft;
        [changqifuzhaihejil mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.zichanzongjil.mas_bottom);
        }];
        changqifuzhaihejil.adjustsFontSizeToFitWidth = YES;
        _changqifuzhaihejil = changqifuzhaihejil;
    }
    return _changqifuzhaihejil;
}
//主营业务收入
-(UILabel *)zhuyingyewushouru
{
    if (_zhuyingyewushouru == nil) {
        UILabel *zhuyingyewushouru = [[UILabel alloc] init];
        [self.contentView addSubview:zhuyingyewushouru];
        zhuyingyewushouru.backgroundColor = [UIColor clearColor];
        zhuyingyewushouru.textColor = [UIColor colorWithHexString:blueyGrey];
        zhuyingyewushouru.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zhuyingyewushouru.textAlignment = NSTextAlignmentLeft;
        [zhuyingyewushouru mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.changqifuzhaiheji.mas_bottom);
        }];
        zhuyingyewushouru.text = @"主营业务收入";
        zhuyingyewushouru.adjustsFontSizeToFitWidth = YES;
        _zhuyingyewushouru = zhuyingyewushouru;
    }
    return _zhuyingyewushouru;
}
-(UILabel *)zhuyingyewushourul
{
    if (_zhuyingyewushourul == nil) {
        UILabel *zhuyingyewushourul = [[UILabel alloc] init];
        [self.contentView addSubview:zhuyingyewushourul];
        zhuyingyewushourul.backgroundColor = [UIColor clearColor];
        zhuyingyewushourul.textColor = [UIColor colorWithHexString:dark];
        zhuyingyewushourul.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        zhuyingyewushourul.textAlignment = NSTextAlignmentLeft;
        [zhuyingyewushourul mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.changqifuzhaihejil.mas_bottom);
        }];
        zhuyingyewushourul.adjustsFontSizeToFitWidth = YES;
        _zhuyingyewushourul = zhuyingyewushourul;
    }
    return _zhuyingyewushourul;
}
//财务费用
-(UILabel *)caiwufeiyong
{
    if (_caiwufeiyong == nil) {
        UILabel *caiwufeiyong = [[UILabel alloc] init];
        [self.contentView addSubview:caiwufeiyong];
        caiwufeiyong.backgroundColor = [UIColor clearColor];
        caiwufeiyong.textColor = [UIColor colorWithHexString:blueyGrey];
        caiwufeiyong.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        caiwufeiyong.textAlignment = NSTextAlignmentLeft;
        [caiwufeiyong mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.zhuyingyewushouru.mas_bottom);
        }];
        caiwufeiyong.text = @"财务费用";
        caiwufeiyong.adjustsFontSizeToFitWidth = YES;
        _caiwufeiyong = caiwufeiyong;
    }
    return _caiwufeiyong;
}
-(UILabel *)caiwufeiyongl
{
    if (_caiwufeiyongl == nil) {
        UILabel *caiwufeiyongl = [[UILabel alloc] init];
        [self.contentView addSubview:caiwufeiyongl];
        caiwufeiyongl.backgroundColor = [UIColor clearColor];
        caiwufeiyongl.textColor = [UIColor colorWithHexString:dark];
        caiwufeiyongl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        caiwufeiyongl.textAlignment = NSTextAlignmentLeft;
        [caiwufeiyongl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.zhuyingyewushourul.mas_bottom);
        }];
        caiwufeiyongl.adjustsFontSizeToFitWidth = YES;
        _caiwufeiyongl = caiwufeiyongl;
    }
    return _caiwufeiyongl;
}
//净利润
-(UILabel *)jinglirun
{
    if (_jinglirun == nil) {
        UILabel *jinglirun = [[UILabel alloc] init];
        [self.contentView addSubview:jinglirun];
        jinglirun.backgroundColor = [UIColor clearColor];
        jinglirun.textColor = [UIColor colorWithHexString:blueyGrey];
        jinglirun.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        jinglirun.textAlignment = NSTextAlignmentLeft;
        [jinglirun mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.left.equalTo(self).offset(self.marginL);
            make.top.equalTo(self.caiwufeiyong.mas_bottom);
        }];
        jinglirun.text = @"净利润";
        jinglirun.adjustsFontSizeToFitWidth = YES;
        _jinglirun = jinglirun;
    }
    return _jinglirun;
}
-(UILabel *)jinglirunl
{
    if (_jinglirunl == nil) {
        UILabel *jinglirunl = [[UILabel alloc] init];
        [self.contentView addSubview:jinglirunl];
        jinglirunl.backgroundColor = [UIColor clearColor];
        jinglirunl.textColor = [UIColor colorWithHexString:dark];
        jinglirunl.font = [UIFont systemFontOfSize:font12ScreenWRate * LKScreenW];
        jinglirunl.textAlignment = NSTextAlignmentLeft;
        [jinglirunl mas_makeConstraints:^(MASConstraintMaker *make) {
            make.width.equalTo(@(self.marginW));
            make.height.equalTo(@(self.marginH));
            make.right.equalTo(self).offset(-self.marginL);
            make.top.equalTo(self.caiwufeiyongl.mas_bottom);
        }];
        jinglirunl.adjustsFontSizeToFitWidth = YES;
        _jinglirunl = jinglirunl;
    }
    return _jinglirunl;
}

@end
